package com.zzt.xytv;

import com.google.android.exoplayer2.MediaItem;
import com.google.android.exoplayer2.MediaMetadata;
import com.google.android.exoplayer2.util.MimeTypes;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

final class DemoUtil {

    public static final List<MediaItem> SAMPLES;

    static {
        ArrayList<MediaItem> samples = new ArrayList<>();
        samples.add(
                new MediaItem.Builder()
                        .setUri("http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4")
                        .setMediaMetadata(new MediaMetadata.Builder().setTitle("MP4地址").build())
                        .setMimeType(MimeTypes.VIDEO_MP4)
                        .build());

        samples.add(
                new MediaItem.Builder()
                        .setUri("http://xiangyang.live.cjyun.org/video/s10125-news_hd/index.m3u8")
                        .setMediaMetadata(new MediaMetadata.Builder().setTitle("襄阳").build())
                        .setMimeType(MimeTypes.APPLICATION_M3U8)
                        .build());


        SAMPLES = Collections.unmodifiableList(samples);
    }

}
